﻿using System;
using System.Collections.Generic;
using System.Linq;
using SportTraining.Core.Services;
using TermClasses;

namespace SportTraining.Services
{
    public class FiscalRegister : IFiscalRegister
    {
        private readonly ITerminalFiscalRegister terminalFiscalRegister;

        public FiscalRegister(ITerminalFiscalRegister terminalFiscalRegister)
        {
            this.terminalFiscalRegister = terminalFiscalRegister;
        }

        #region Implementation of IFiscalRegister

        public void PrintXReport()
        {
            terminalFiscalRegister.PrintXReport();
        }

        public void PrintZReport()
        {
            terminalFiscalRegister.PrintZReport();
        }

        public void PrintCheck(IList<string> checkInfos)
        {
            checkInfos.ToList().ForEach(Console.WriteLine);
        }

        #endregion
    }
}